let t = require;
let  e = module
let  o =  e.exports;
 o.default =  e.exports;

                'use strict';
                console.log("start");
                var _n181,
                    i =
                    (this && this.__extends) ||
                    ((_n181 = function n(t, e) {
                            return (_n181 =
                                Object.setPrototypeOf ||
                                ({
                                        __proto__: []
                                    }
                                    instanceof Array &&
                                    function(t, e) {
                                        t.__proto__ = e;
                                    }) ||
                                function(t, e) {
                                    for (var o in e) {
                                        Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                                    }
                                })(t, e);
                        }),
                        function(t, e) {
                            function o() {
                                this.constructor = t;
                            }
                            _n181(t, e),
                                (t.prototype =
                                    null === e ?
                                    Object.create(e) :
                                    ((o.prototype = e.prototype), new o()));
                        });
                Object.defineProperty(o, '__esModule', {
                        value: !0
                    }),
                    (o.UiEffectCom = void 0);
                var r = t('UIComponent'),
                    a = cc.Vec2,
                    s = (function(t) {
                        function e(e) {
                            var o = t.call(this, cc.Canvas.instance.node) || this,
                                n = o;
                            return (
                                (o._name = e),
                                cc.resources.load('Prefab/Effect/' + e, function(t, e) {
                                    t || n.initEffect(cc.instantiate(e));
                                }),
                                o
                            );
                        }
                        return (
                            i(e, t),
                            (e.show = function(t, o) {
                                if (o) {
                                    var n = e.map[t];
                                    (n && n.length > 0 ? n.shift() : new e(t)).playTo(o);
                                }
                            }),
                            (e.put = function(t) {
                                var o = e.map[t.name];
                                null == o && ((o = []), (e.map[t.name] = o)), o.push(t);
                            }),
                            (e.prototype.onInit = function() {
                                t.prototype.onInit.call(this), this.removeListenerTouch();
                            }),
                            Object.defineProperty(e.prototype, 'name', {
                                get: function get() {
                                    return this._name;
                                },
                                enumerable: !1,
                                configurable: !0
                            }),
                            (e.prototype.initEffect = function(t) {
                                (this._animator = t.getComponent(sp.Skeleton)),
                                this._animator &&
                                    this._animator.setCompleteListener(
                                        this.onAnimCompleteHandler.bind(this)
                                    ),
                                    this.view.addChild(t),
                                    this.playTo(this._target);
                            }),
                            (e.prototype.playTo = function(t) {
                                if (((this._target = t), this._animator)) {
                                    var e = this._target.convertToWorldSpaceAR(a.ZERO);
                                    (e = this.view.convertToNodeSpaceAR(e)),
                                    this._animator.node.setPosition(e),
                                        (this._animator.node.parent = this.view),
                                        this._animator.setAnimation(0, 'animation', !1);
                                }
                            }),
                            (e.prototype.onAnimCompleteHandler = function() {
                                this._animator && (this._animator.node.parent = null),
                                    (this._target = null),
                                    e.put(this);
                            }),
                            (e.map = {}),
                            e
                        );
                    })(r.UIComponent);
                (o.UiEffectCom = s), console.log("end");
            module.exports =  e.exports;